package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UcsdCategoryMapper;
import com.ruoyi.system.domain.UcsdCategory;
import com.ruoyi.system.service.IUcsdCategoryService;

/**
 * 抓取模型类别Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-27
 */
@Service
public class UcsdCategoryServiceImpl implements IUcsdCategoryService 
{
    @Autowired
    private UcsdCategoryMapper ucsdCategoryMapper;

    /**
     * 查询抓取模型类别
     * 
     * @param id 抓取模型类别主键
     * @return 抓取模型类别
     */
    @Override
    public UcsdCategory selectUcsdCategoryById(Long id)
    {
        return ucsdCategoryMapper.selectUcsdCategoryById(id);
    }

    /**
     * 查询抓取模型类别列表
     * 
     * @param ucsdCategory 抓取模型类别
     * @return 抓取模型类别
     */
    @Override
    public List<UcsdCategory> selectUcsdCategoryList(UcsdCategory ucsdCategory)
    {
        return ucsdCategoryMapper.selectUcsdCategoryList(ucsdCategory);
    }

    /**
     * 新增抓取模型类别
     * 
     * @param ucsdCategory 抓取模型类别
     * @return 结果
     */
    @Override
    public int insertUcsdCategory(UcsdCategory ucsdCategory)
    {
        return ucsdCategoryMapper.insertUcsdCategory(ucsdCategory);
    }

    /**
     * 修改抓取模型类别
     * 
     * @param ucsdCategory 抓取模型类别
     * @return 结果
     */
    @Override
    public int updateUcsdCategory(UcsdCategory ucsdCategory)
    {
        return ucsdCategoryMapper.updateUcsdCategory(ucsdCategory);
    }

    /**
     * 批量删除抓取模型类别
     * 
     * @param ids 需要删除的抓取模型类别主键
     * @return 结果
     */
    @Override
    public int deleteUcsdCategoryByIds(Long[] ids)
    {
        return ucsdCategoryMapper.deleteUcsdCategoryByIds(ids);
    }

    /**
     * 删除抓取模型类别信息
     * 
     * @param id 抓取模型类别主键
     * @return 结果
     */
    @Override
    public int deleteUcsdCategoryById(Long id)
    {
        return ucsdCategoryMapper.deleteUcsdCategoryById(id);
    }
}
